package com.yunsc.product.dto;


import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.common.validator.ValidationGroups;
import com.yunsc.product.entity.YunscGoodsCategoryEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-03-04 12:55
 */

@Data
public class GoodsCategoryDTO {
    @ApiModelProperty(value = "分类ID")
    @JsonProperty("categoryId")
    @NotNull(message = "分类ID不能为空", groups = {ValidationGroups.Delete.class, ValidationGroups.Update.class})
    private Integer categoryId;

    @ApiModelProperty(value = "状态值")
    private Integer status;

    @ApiModelProperty(value = "分类实体")
    private YunscGoodsCategoryEntity form;
}
